﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Attribute
/// </summary>
public class Attribute
{
	public Attribute(long id, long categoryID, string title, string description, bool required, short sortOrder, bool isCustom)
	{
        ID = id;
        CategoryID = categoryID;
        Title = title;
        Description = description;
        Required = required;
        SortOrder = sortOrder;
        IsCustom = isCustom;
	}

    public Attribute(long id, long categoryID, string title, string description, bool required, short sortOrder, AttributeValueEntity[] attr, bool isCustom)
    {
        ID = id;
        CategoryID = categoryID;
        Title = title;
        Description = description;
        Required = required;
        SortOrder = sortOrder;
        AttributeValues = attr;
        IsCustom = isCustom;
    }

    public long ID { get; private set; }

    public long CategoryID { get; private set; }

    public string Title { get; private set; }

    public string Description { get; private set; }

    public bool Required { get; private set; }

    public short SortOrder { get; private set; }

    public AttributeValueEntity[] AttributeValues { get; private set; }

    public bool IsCustom { get; private set; }


}